package Day26;

import java.util.ArrayList;

public class Demo01 {
    //DeBug  断点调试
    static ArrayList<String> data = new ArrayList<>();

    public static void main(String[] args) {
        int count = 10;
        for (int i = 0; i < 10; i++) {
            count ++;
            data.add("item" + i);

        }
        for (int i = 0; i < data.size(); i++) {
            count--;
            String text = data.remove(i);
            System.out.println(text);
        }
    }
}
